<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //语法结构
        switch (表达式) {
            case value:
                //执行语句1
                break;

            default:
                //执行最后的语句

        }
    </script>
</head>

<body>

</body>

</html>